kubectl create namespace numaflow-system
export numaflow_version=$(curl -s https://api.github.com/repos/numaproj/numaflow/releases | jq -r '.[0].name')
echo "numaflow_version: ${numaflow_version}"
# Install numaflow controller and UI
kubectl apply -n numaflow-system -f https://github.com/numaproj/numaflow/releases/download/${numaflow_version}/install.yaml

# Install validating webhook (Optional)
# kubectl apply -n numaflow-system -f https://github.com/numaproj/numaflow/releases/download/${numaflow_version}/validating-webhook-install.yaml


# kubectl get pipeline # or "pl" as a short name

# kubectl port-forward -n numaflow-system svc/numaflow-server 8443:8443
# https://127.0.0.1:8443/
